//
//  SearchBar.h
//  ProjectforHDX
//
//  Created by Jaesun on 16/8/3.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^BackBtnBlock)(void);

typedef void(^TextBlock)(NSString *keyword);

@interface SearchBar : UIView<UITextFieldDelegate>

@property (nonatomic, strong) RZCustomButtom *backBtn;
@property (nonatomic, strong) UIView *inputBGView;
@property (nonatomic, strong) RZCustomImageView *searchIconView;
@property (nonatomic, strong) UITextField *keyWordText;

/**
 *  输入的关键字
 */
@property (nonatomic, strong) NSString *keyword;
/**
 *  返回按钮回调
 */
@property (nonatomic, strong) BackBtnBlock back;
/**
 *  结束编辑回调
 */
@property (nonatomic, strong) TextBlock textBlcok;


@end
